package payroll;

import com.example.Employee;
import com.example.classification.SalariedClassifiction;
import com.example.trans.ChangeEmployeeTransaction;


public class ChangeSalariedTransaction extends ChangeEmployeeTransaction {
    private double salary;

    public ChangeSalariedTransaction(int empId, double salary) {
        super(empId);
        this.salary = salary;
    }

    @Override
    protected void doChange(Employee e) {
        e.setPaymentClassification(new SalariedClassifiction(salary));
    }

}
